<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
if(null==session.getAttribute("manager")){
response.sendRedirect("./managerLogin.jsp");
}
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'addSuccessful.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <body>
  <h1 style="text-align: center;position:absolute;top:10%;left:33%" >添加物品成功</h1>
    <div><img src="images/logo.jpg" style="position:absolute;left:30%;top:20%"/></div>
    <div style="position:absolute;left:50%;top:30%"> 	
    <a href="index.jsp" style="font-size: 30px;font-color:black">前往主页查看</a><br>
    <% if("commodity".equals(request.getParameter("type"))) {%>
    <a href="./jsp/manager/commodityAdd.jsp" style="font-size: 30px;font-color:black">继续添加</a>
    <%}else{ %>
    <a href="./jsp/manager/addAdvertising.jsp" style="font-size: 30px;font-color:black">继续添加</a>
    <%} %>
    </div>
  </body>
  </body>
</html>
